package com.jas.testing;

import java.util.Calendar;

import org.junit.Test;

import com.jas.common.CommandFormatException;
import com.jas.common.DateFormatException;
import com.jas.common.DeadlineEvent;
import com.jas.common.Event;
import com.jas.common.SearchException;
import com.jas.logic.EventIdException;
import com.jas.logic.Logic;
import com.jas.logic.LogicAPI;
import com.jas.storage.StorageException;
import com.jas.ui.DisplayControl;
import com.jas.ui.JasDisplayHandler;

//A class to test UI
public class TestUI {
	
	@Test
	public void testUIDisplay(){
		try {
			Logic logic = new Logic();
			LogicAPI logicAPI = new LogicAPI(logic);
			JasDisplayHandler tbh = new JasDisplayHandler(logicAPI);
		
			DisplayControl displayControl = new DisplayControl(logicAPI);
			String cmd1 = "add event1";
			displayControl.executeUserCommand(cmd1);
			String cmd2 = "show";
			displayControl.executeUserCommand(cmd2);
			//assertTrue(displayControl.);
			
			
			
		} catch (Exception e){
			e.printStackTrace();
			
		}
		
		
		
		
		
	}
	
	
}
